export function useStorage() {
	/**
	 * 设置存储数据
	 */
	const set = (key, data) => {
		key = getKey(key)
		return uni.setStorageSync(
			key,
			data
		);
	}
	
	/**
	 * 获取 
	 */
	const get = (key) => {
		key = getKey(key)
		return uni.getStorageSync(key)
	}
	
	/**
	 * 删除
	 */
	const remove = (key) => {
		key = getKey(key)
		return uni.removeStorageSync(
			key
		)
	}

	/**
	 * 获取键
	 */
	const getKey = (key) => {
		return 'KEY_' + key
	}

	return {
		get,
		set,
		remove
	}
}